﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _00_委托的练习
{
    public partial class Form2 : Form
    {
        public Form2(int runSpeed,int StarSpeed,int StopSpeed)
        {
            InitializeComponent();
            this.trackBar1.Value = runSpeed;
            this.trackBar2.Value = StarSpeed;
            this.trackBar3.Value = StopSpeed;
        }

        private void Form2_FormClosed(object sender, FormClosedEventArgs e)
        {
            Form1.delChangeButtonEanble(true);
        }

        private void trackBar1_Scroll(object sender, EventArgs e)
        {
            Form1.delChangeTextBoxText(this.trackBar1.Value, this.trackBar2.Value, this.trackBar3.Value);
        }
    }
}
